﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DPM.Dto;

namespace DPM.Common.Helpers
{
	public class MedicalHelper
	{
		public static IEnumerable<IdNameDto> GetMedicalConditions()
		{
			List<IdNameDto> newList = new List<IdNameDto>();
			List<string> medicalConditions = new List<string>();
			medicalConditions.Add(Constants.MedicalConditionTypes.HighLowBloodPressure);
			medicalConditions.Add(Constants.MedicalConditionTypes.Allergies);
			medicalConditions.Add(Constants.MedicalConditionTypes.Asthma);
			medicalConditions.Add(Constants.MedicalConditionTypes.BrokenBones);
			medicalConditions.Add(Constants.MedicalConditionTypes.Operations);

			for (int i = 1; i <= medicalConditions.Count; i++)
			{
				IdNameDto dto = new IdNameDto
				{
				Id = i,
				Name = medicalConditions[i -1],
				};
				newList.Add(dto);
			}

			return newList;
		}
	}
}
